# _*_ coding:utf-8 _*_
"""
爬虫模块
起始请求
解析响应数据提取请求
"""
from ..http.request import Request
from ..items import Item


class Spider(object):
    start_url = 'http://www.itcast.cn/'

    def start_requests(self):
        """
        准备起始请求对象
        """
        return Request(self.start_url)

    def parse(self, response):
        # 解析响应数据,提取响应数据和请求

        return Item(response.url)
